<?php
echo "######### String\n";
// String
echo date("Y-m-d");
echo "\n";
echo (date("Y-m-d",mktime(20,22,10,10,10,2009)));
echo "\n";
echo "######### int\n";
// int
echo time();
echo "\n";
echo "######### String to Time\n";
// String to Time
echo strtotime("2009-10-10 20:22:10");
echo "\n";
echo strtotime("now");
echo "\n";
echo "#########\n";